-- GENERATED SPELL FOR [Tivax the Breaker] --


function spell0_26770(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(20795,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26770', 645, 1)
end

function spell1_26770(pUnit, Event) --@Scorch,n/a--
pUnit:FullCastSpellOnTarget(13878,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26770', 1500, 1)
end

function Sorts_26770(pUnit, Event)
local choix_sorts_26770 = math.random(0, 1)
if choix_sorts_26770 == 0 then
pUnit:RegisterEvent('spell0_26770', 1, 1)
end
if choix_sorts_26770 == 1 then
pUnit:RegisterEvent('spell1_26770', 1, 1)
end
end

function mob26770_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26770', math.random(1500, 3000), 1)
end

function mob26770_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26770_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26770_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26770, 1, 'mob26770_Action')
RegisterUnitEvent(26770, 2, 'mob26770_Leave')
RegisterUnitEvent(26770, 3, 'mob26770_Kill')
RegisterUnitEvent(26770, 4, 'mob26770_Die')
